home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / AmiTCPsdk_40.lha / AmiTCP-4.0 / src / netlib / GNUmakefile < prev    next >
Makefile  |  1994-09-30  |  2KB  |  69 lines

  1. #
  2. #       $Id: GNUmakefile,v 4.3 1994/09/30 05:17:08 jraja Exp $
  3. #       GNUmakefile for AmiTCP/IP network support library 
  4. #
  5. #       Copyright © 1994 AmiTCP/IP Group, 
  6. #                        Network Solutions Development Inc.
  7. #                        All rights reserved.
  8. #
  9.  
  10. MAKE = gmake
  11.  
  12. RM= delete
  13. RM_RECURSIVE= delete all
  14. MKDIR= makedir
  15. CC= sc
  16.  
  17. DIST_LIB = $(DIST)/netlib
  18.  
  19. CFLAGS= 
  20.  
  21. LD= 
  22.  
  23. NETLIBSRC= strerror.c autoinit.c dummy.c lineread.c \
  24.         getopt.c printfault.c stubs.c perror.c herror.c \
  25.         timerinit.c gettimeofday.c rcmd.c syslog.c \
  26.         getpid.c chmod.c chown.c utime.c popen.c sleep.c usleep.c \
  27.     printuserfault.c init_usergroup.c setegid.c seteuid.c \
  28.     _dup.c _dup2.c stat.c _fstat.c fib.c dostat.c access.c \
  29.         _allocufb.c _chkufb.c _close.c _lseek.c _open.c _read.c \
  30.         _write.c fhopen.c ioctl.c iomode.c isatty.c \
  31.     init_inet_daemon.c set_socket_stdio.c serveraccept.c \
  32.     netlib.h fibex.h \
  33.     linkaddr.c linkntoa.c \
  34.     dosio_init.c dosio_sprintf.c
  35.  
  36. SANA2LIBSRC= sana2perror.c sana2errlist.c sana2printfault.c
  37.  
  38. LIBSRC= $(NETLIBSRC) $(SANA2LIBSRC)
  39.  
  40. SRCS=   $(LIBSRC) GNUmakefile Smakefile 
  41.  
  42. all: 
  43.  
  44. DIST: $(DIST_LIB)
  45.  
  46. $(DIST_LIB): $(SRCS)
  47.     test -d $(DIST) || mkdir $(DIST) 
  48.     test -d $(DIST_LIB) || mkdir $(DIST_LIB)
  49.     tar cf - $(SRCS) | (cd $(DIST_LIB); tar xf -)
  50.  
  51. RELEASE: $(SRCS)
  52.     for F in $(SRCS) ; do \
  53.       rlog -R $$F && { \
  54.         if ident -q $$F | fgrep '$$' >/dev/null ; \
  55.           then rcs -q '-N$(RELEASE):$$' $$F ; \
  56.           else rcs -q '-N$(RELEASE):' $$F ;\
  57.         fi ; \
  58.           } ;\
  59.     done
  60.  
  61. locks:
  62.     @rlog -R -L $(SRCS)
  63. mylocks:
  64.     @rlog -R -l`whoami` -L $(SRCS)
  65. verlocks:
  66.     @rlog -h -L $(CSRCS)
  67.  
  68.